home *** CD-ROM | disk | FTP | other *** search
- function dispatchEvent (action, source) {
- var evt = new NOF.EventObject(action, source);
- updatesApp.dispatchEvent(evt);
- }
-
- function onLoad() {
- dispatchEvent("Load", null);
- }
-
- function onUnLoad() {
- // no save if not clicked 'Done'
- dispatchEvent("Unload", null);
- }
-
- function onUpdateNow() {
- dispatchEvent("UpdateNow", null);
- }
-
- function onDownload() {
- dispatchEvent("Download", null);
- }
-
- function onChangeDownloadLocation( source ) {
- dispatchEvent('ChangeDownloadLocation', source);
- }
-
- function onCheckVersion( source ) {
- dispatchEvent('PREVIOUS_UPDATES_EDITOR.CheckVersion', source);
- }
-
- function showReleaseNotes(version, vInfo, build) {
- nofUpdateObj.showReleaseNotes( version, vInfo, build, updatesApp.getResource() );
- }
-
- function getAHTML(headCnt, bodyCnt) {
- var _head = "<head>"+headCnt+"</head>";
- var _body = "<body>"+bodyCnt+"</body>";
-
- //NOF.util_logging_ConsoleLogger_global.info("getAHTML returned\r\n\r\n <html>\r\n"+_head+"\r\n"+_body+"\r\n</html>");
- //alert("getAHTML returned\r\n\r\n <html>\r\n"+_head+"\r\n"+_body+"\r\n</html>");
- return "<html>\r\n"+_head+"\r\n"+_body+"\r\n</html>";
- }
-
- function exitUpdate(result) {
- window.returnValue = result;
- window.close();
- }
-